package com.guoqiang.method;

public class Demo03 {
    public static void main(String[] args) {
        Person person = new Person();
        person.age = 10;
        person.name = "小明";

        Person p2 = person; // 把person赋给了p2
        System.out.println(p2.age);
    }
}

class Person {
    int age;
    String name;
}
